(function(){
	angular.module('app').factory('darenTieProductComponentService',darenTieProductComponentService);

	darenTieProductComponentService.$inject = ['util','$q'];

	function darenTieProductComponentService(util,$q){

		return {
			getDarenTieProduct:_getDarenTieProduct
		}


		function _getDarenTieProduct(json){

			var defer = $q.defer();

			util.$get({
				url:'/marketconditions/daren/getDarenProducts.htm',
				data:json
			}).then(function(resp){

				defer.resolve(resp.value);

			},function(err){

				defer.reject(err);

			});


			return defer.promise;

		}
	}
})();